<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>题目列表</title>
    <link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
</head>
<body>
    <h1>题目列表</h1>
    <table>
        <thead>
            <tr>
                <th>ID</th>
                <th>题目内容</th>
                <th>编辑</th>
            </tr>
        </thead>
        <tbody>
            {% if questions %}
                {% for question in questions %}
                <tr>
                    <td>{{ question.id }}</td>
                    <td>{{ question.text }}</td>
                  <td><a href="{{ url_for('edit_question', question_id=question.id) }}">编辑</a></td>
                </tr>
                {% endfor %}
            {% else %}
                <tr>
                    <td colspan="3">没有找到任何题目。</td>
                </tr>
            {% endif %}
        </tbody>
    </table>
</body>
</html>
